package com.mjk.common.web.getway.restful.prototal.ws;

import jakarta.servlet.ServletContext;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.ws.rs.*;
import jakarta.ws.rs.core.Context;
import jakarta.ws.rs.core.MediaType;


/**
 * 基于restful 风格的 webservice
 * @author mjk
 *
 */
@Path("/")
public interface GetWayWebService {
	
	
	@GET
	@Path("{work}")
	@Produces({ MediaType.APPLICATION_JSON })
    String doCommonWebService(@PathParam("work") String work,
                              @QueryParam("method") String method, @Context ServletContext servletContext,
                              @Context HttpServletRequest request, @Context HttpServletResponse response);
}
